package edu.uw.tcss360.group6.model;//add get contest and get role methods

@SuppressWarnings("serial")
public class User implements java.io.Serializable, Comparable<User> {

    private String my_username;

	private String my_name;
	
	private String my_phone_number;

    private String my_address;

    private String my_email;

    public User(String username, String name, String phone_number, String address, String email) {
        my_username = username;
        my_name = name;
        my_phone_number = phone_number;
        my_address = address;
        my_email = email;
    }

    public User(User user) {
        my_username = user.getUsername();
        my_name = user.getName();
        my_phone_number = user.getPhoneNumber();
        my_address = user.getEmail();
        my_email = user.getAddress();
    }

    public String toString() {
        return getUsername();
    }

    public String getUsername() {
        return my_username;
    }

	public String getName() {
		return my_name;
	}

	public String getPhoneNumber() {
		return my_phone_number;
	}

	public String getAddress() {
		return my_address;
	}

    public String getEmail() {
        return my_email;
    }

    @Override
    public int compareTo(User o) {
        return this.getUsername().compareTo(o.getUsername());
    }
}
